﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace System {
	public static class StringExtension {
		public static string RemoveLast(this String text, int startIndex) {
			if (text.Length >= startIndex)
				return text.Remove(text.Length - startIndex);
			else
				return null;
		}
	}
}
